package com.authentication.utils;


import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Context;

public class DialogFactory {
	public static Dialog createDialog(Context context,int layout,int theme) {
		Dialog dialog = new Dialog(context,theme);
		dialog.setContentView(layout);
		return  dialog;
	}
	
	public static ProgressDialog createWaitProgressDialog(Context context,int message){
		ProgressDialog progress = new ProgressDialog(context);
//		progress.setIcon(R.drawable.write_success);
		progress.setMessage(context.getResources().getString(message));
		return progress;
	}
}
